package com.quarkus.bean;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

import java.util.List;

@NoArgsConstructor
@AllArgsConstructor
@JsonIgnoreProperties(ignoreUnknown = true)
public class Country {

    public String name;
    public String alpha2Code;
    public String capital;
    public List<Currency> currencies;

    public Country(String name, String alpha2Code, String capital) {
        this.name = name;
        this.alpha2Code = alpha2Code;
        this.capital = capital;
    }

    public static class Currency {
        public String code;
        public String name;
        public String symbol;
    }
}